From d06d3cfb8d7622c66c59a2454fe9b791374058ec Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 24 Oct 2007 14:35:19 +0100 Subject: [PATCH] minios: Make NSEC_TO_USEC/NSEC_TO_SEC macros expression safe. From: Samuel Thibault Signed-off-by: Keir Fraser --- extras/mini-os/include/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/mini-os/include/time.h b/extras/mini-os/include/time.h index 468a8d9173..ab844e8ede 100644 --- a/extras/mini-os/include/time.h +++ b/extras/mini-os/include/time.h @@ -37,8 +37,8 @@ typedef s64 s_time_t; #define MICROSECS(_us) (((s_time_t)(_us)) * 1000UL ) #define Time_Max ((s_time_t) 0x7fffffffffffffffLL) #define FOREVER Time_Max -#define NSEC_TO_USEC(_nsec) (_nsec / 1000UL) -#define NSEC_TO_SEC(_nsec) (_nsec / 1000000000ULL) +#define NSEC_TO_USEC(_nsec) ((_nsec) / 1000UL) +#define NSEC_TO_SEC(_nsec) ((_nsec) / 1000000000ULL) /* wall clock time */ typedef long time_t; -- 2.30.2